]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dnd: Drop seat state check
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 30 Dec 2025 13:34:00 +0000 (14:34 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 19 Jan 2026 16:28:44 +0000 (16:28 +0000)
Grabs are non-failable now, we do not need to check for
the backend seat actually having been able to perform the
request.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4020>

js/ui/dnd.js

index a0096a0b0b5039dc6288909eb7c97c347f6b69cb..d769d18456f8ca0019043c2c8df862926baeddf5 100644 (file)
@@ -116,11 +116,6 @@ class _Draggable extends Signals.EventEmitter {
 
     _grabEvents(sprite) {
         const grab = Main.pushModal(_getEventHandlerActor());
-        if ((grab.get_seat_state() & Clutter.GrabState.POINTER) === 0) {
-            Main.popModal(grab);
-            return;
-        }
-
         this._grab = grab;
         this._sprite = sprite;
     }